package com.qqhf.hitfood.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.qqhf.hitfood.bean.entity.TypeFood;
import com.qqhf.hitfood.mapper.TypeFoodMapper;
import com.qqhf.hitfood.service.ITypeFoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TypeFoodServiceImpl extends ServiceImpl<TypeFoodMapper, TypeFood> implements ITypeFoodService {
    @Autowired
    TypeFoodMapper typeFoodMapper;

    @Override
    public List<Object> nameList() {
        return typeFoodMapper.selectObjs(new QueryWrapper<TypeFood>().select("name"));
    }
}
